package com.example.teachingSystem.service;

import com.example.teachingSystem.pojo.entity.Score;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.form.score.AddScoreForm;
import com.example.teachingSystem.pojo.form.score.ScorePageQuery;
import com.example.teachingSystem.pojo.form.score.UpdateScoreForm;
import com.example.teachingSystem.pojo.vo.ScoreInfoVo;
import com.example.teachingSystem.utils.result.PageResult;
import com.example.teachingSystem.utils.result.Result;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 86147
* @description 针对表【score(成绩表)】的数据库操作Service
* @createDate 2023-11-27 21:43:54
*/
public interface ScoreService extends IService<Score> {
    Result<String> addScore(AddScoreForm addScoreForm);
    Result<String> updateScore(UpdateScoreForm updateScoreForm);
    Result<String> deleteScoreByScoreId(Long scoreId);
    PageResult<ScoreInfoVo> showScoresByAdmin(ScorePageQuery scorePageQuery);
    PageResult<ScoreInfoVo> showScoresByTeacher(ScorePageQuery scorePageQuery);
    PageResult<ScoreInfoVo> showScoresByStudent(ScorePageQuery scorePageQuery);
}
